package com.fate.feign;

import com.fate.es.ProdEs;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(value = "search-service")
public interface CollectSearchFeign {
    /**
     * 远程调用搜索服务  根据ids搜索商品
     */
    @PostMapping("/search/getProdEsByIds")
    List<ProdEs> getProdEsByIds(@RequestBody List<Long> prodIds);
}
